import request from '@/utils/request'

// 查询转让列表
export function listTransference(query) {
  return request({
    url: '/system/transference/list',
    method: 'get',
    params: query
  })
}

// 查询转让详细
export function getTransference(id) {
  return request({
    url: '/system/transference/' + id,
    method: 'get'
  })
}

// 新增转让
export function addTransference(data) {
  return request({
    url: '/system/transference',
    method: 'post',
    data: data
  })
}

// 修改转让
export function updateTransference(data) {
  return request({
    url: '/system/transference',
    method: 'put',
    data: data
  })
}

// 删除转让
export function delTransference(id) {
  return request({
    url: '/system/transference/' + id,
    method: 'delete'
  })
}
